﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UGUIFW;
using UnityEngine.UI;

public class NormalUI_01 : BaseUI
{
    Text text;
    public NormalUI_01(UIInfo uIInfo) : base(uIInfo)
    {

    }

    public override void Display()
    {
        text = transform.Find("Text").GetComponent<Text>();
        base.Display();
        RigisterButtonObjectEvent("BtnClose",
         go =>
         {
             CloseUI();
             ExternalAction?.Invoke();
         });
        text.text = ExternalData.ToString();
    }

    public void SetData(int index)
    {
        Debug.Log(index + "***********************");
    }
}
